{include file="public/header" /}
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.fuwu_personal}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
    <table class="ds-default-table">
            <thead>
            <tr>
                <a class="btn" href="javascript:dsLayerOpen('{:url('Fupersonal/addjineng',['id'=>$id])}','添加技能')" title="添加技能" style="margin-left: 10px;
    margin-top: 10px;">
                <span>添加技能</span></a>
            </tr>
            <tr class="thead">
                <th class="w24"></th>
                <th>{$Think.lang.fuwu_personal_cate1}</th>
                <th>{$Think.lang.fuwu_personal_cate2}</th>
                <th class="w150">{$Think.lang.fuwu_personal_cate3}</th>
                <th class="w150">{$Think.lang.fuwu_personal_brand}</th>
                <th class="w150">{$Think.lang.fuwu_personal_anzhuang}</th>
                <th class="w150">{$Think.lang.fuwu_personal_weixiu}</th>
                <th class="w150">{$Think.lang.fuwu_personal_baoyang}</th>
                <th class="w150">{$Think.lang.fuwu_personal_statuss}1</th>
                <th class="w150">{$Think.lang.fuwu_personal_statuss}</th>
                <th class="w150">{$Think.lang.fuwu_personal_fail}</th>
                <!--<th class="w150">{$Think.lang.fuwu_personal_createdtime}</th>-->
                <th class="w150">{$Think.lang.fuwu_personal_updatedtime}</th>
                <th class="w120 align-center">{$Think.lang.ds_handle}</th>
            </tr>
            </thead>
            <tbody>
            {notempty name="$data"}
            {foreach name="data" item="v"}
            <tr class="hover edit" id="ds_row_{$v.id}">
                <td><input value="{$v.id}" class="checkitem" type="checkbox" name="del_brand_id[]"></td>
                <td class="name">{$v.cateonename}</td>
                <td class="name">{$v.catetwoname}</td>
                <td class="name">{$v.catethreename}</td>
                <td class="name">{$v.brand_name}</td>
                <td class="name">{if $v.anzhuang == 0}{$Think.lang.fuwu_personal_0}{elseif $v.anzhuang ==1} {$Think.lang.fuwu_personal_1}{elseif $v.anzhuang ==2} {$Think.lang.fuwu_personal_2}{/if}</td>
                <td class="name">{if $v.weixiu == 0}{$Think.lang.fuwu_personal_0}{elseif $v.weixiu ==1} {$Think.lang.fuwu_personal_1}{elseif $v.weixiu ==2} {$Think.lang.fuwu_personal_2}{/if}</td>
                <td class="name">{if $v.baoyang == 0}{$Think.lang.fuwu_personal_0}{elseif $v.baoyang ==1} {$Think.lang.fuwu_personal_1}{elseif $v.baoyang ==2} {$Think.lang.fuwu_personal_2}{/if}</td>
                <td>
                    {if $v.status2 == '0'}
                    <a href="JavaScript:dsLayerConfirm('{:url('Fupersonaljineng/edit_status',['column'=>'status2','value'=>1,'id'=>$v.id])}','{$Think.lang.ds_ensure_edit_status}',{$v.id});"><img src="{$Think.ADMIN_SITE_ROOT}/images/dispatch_jump_error.png"  width="22px"></a>
                    {else /}
                    <a href="JavaScript:dsLayerConfirm('{:url('Fupersonaljineng/edit_status',['column'=>'status2','value'=>0,'id'=>$v.id])}','{$Think.lang.ds_ensure_edit_status}',{$v.id});"><img src="{$Think.ADMIN_SITE_ROOT}/images/dispatch_jump_success.png"></a>
                    {/if}</td>
                <td class="name">
                    {if $v.status == '1'}
                    {$Think.lang.fuwu_personal_statuss1}
                    {elseif $v.status=='2'}{$Think.lang.fuwu_personal_statuss2}
                    {elseif $v.status=='3'}{$Think.lang.fuwu_personal_statuss3}
                    {/if}
                </td>
                <!--<td class="name">{$v.created_at}</td>-->
                <td class="name">{$v.fail}</td>
                <td class="name">{$v.updated_at}</td>
                <td class="align-center">
                    <a href="javascript:dsLayerConfirm('{:url('Fupersonal/jineng_del',['id'=>$v.id])}','{$Think.lang.ds_ensure_del}',{$v.id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
                </td>
            </tr>
           {/foreach}
           {else /}
            <tr class="no_data">
                <td colspan="10">{$Think.lang.ds_no_record}</td>
            </tr>
            {/notempty}
            </tbody>
            <tfoot>
                {notempty name="data"}
                <tr colspan="15" class="tfoot">
                    <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
                    <td colspan="16">
                        <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
                        &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
                    </td>
                </tr>
                {/notempty}
            </tfoot>
        </table>
    {$showpage}
    <div class="clear"></div>
</div>
<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
<script type="text/javascript">
    function submit_delete(ids_str){
        _uri = ADMINSITEURL+"/Fupersonal/jineng_del.html?id=" + ids_str;
        dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
    }
</script>
